# STM32F407平台配置
CONFIG_PLATFORM=stm32f407
CONFIG_PLATFORM_STM32F407=y

# 编译器配置
CONFIG_TOOLCHAIN_PREFIX=arm-none-eabi-
CONFIG_CC=arm-none-eabi-gcc
CONFIG_CXX=arm-none-eabi-g++
CONFIG_AR=arm-none-eabi-ar
CONFIG_OBJCOPY=arm-none-eabi-objcopy
CONFIG_OBJDUMP=arm-none-eabi-objdump

# CPU配置
CONFIG_CPU_FREQ=168000000
CONFIG_CPU_ARCH=cortex-m4
CONFIG_CPU_CORES=1
CONFIG_FPU_SUPPORT=y

# 内存配置
CONFIG_MEMORY_SIZE=196608
CONFIG_FLASH_SIZE=1048576
CONFIG_HEAP_SIZE=65536
CONFIG_STACK_SIZE=8192

# 外设配置
CONFIG_GPIO_SUPPORT=y
CONFIG_SPI_SUPPORT=y
CONFIG_I2C_SUPPORT=y
CONFIG_UART_SUPPORT=y
CONFIG_PWM_SUPPORT=y
CONFIG_ADC_SUPPORT=y
CONFIG_DAC_SUPPORT=y
CONFIG_DMA_SUPPORT=y

# 摄像头配置
CONFIG_CAMERA_SUPPORT=y
CONFIG_CAMERA_DCMI=y
CONFIG_CAMERA_OV2640=y
CONFIG_CAMERA_OV7670=y

# 显示配置
CONFIG_DISPLAY_SUPPORT=y
CONFIG_DISPLAY_ST7789=y
CONFIG_DISPLAY_ILI9341=y
CONFIG_DISPLAY_SSD1306=y

# AI加速器配置
CONFIG_AI_SUPPORT=y
CONFIG_STM32_CUBE_AI=y

# 文件系统配置
CONFIG_FILESYSTEM_SUPPORT=y
CONFIG_FATFS=y

# 网络配置
CONFIG_NETWORK_SUPPORT=n
CONFIG_WIFI_SUPPORT=n
CONFIG_ETHERNET_SUPPORT=n

# 音频配置
CONFIG_AUDIO_SUPPORT=y
CONFIG_I2S_SUPPORT=y

# USB配置
CONFIG_USB_SUPPORT=y
CONFIG_USB_CDC=y

# 调试配置
CONFIG_DEBUG=y
CONFIG_LOG_LEVEL=3
CONFIG_JTAG_SUPPORT=y
CONFIG_SWD_SUPPORT=y

# Python配置
CONFIG_PYTHON_SUPPORT=y
CONFIG_PYTHON_VERSION=3.8
CONFIG_MICROPYTHON=y

# HAL库配置
CONFIG_STM32_HAL=y
CONFIG_STM32F4XX_HAL=y

# 构建配置
CONFIG_BINARY_NAME=maixpy_stm32f407
CONFIG_OUTPUT_DIR=build/stm32f407